//
//  MyWalletViewController.m
//  MovieDate
//
//  Created by ann on 16/3/11.
//  Copyright © 2016年 MovieDate. All rights reserved.
//

#import "MyWalletViewController.h"

@interface MyWalletViewController ()<UITableViewDataSource,UITableViewDelegate>
@property(nonatomic,strong) IBOutlet UITableView * ptableView;
@property(nonatomic,strong) IBOutlet UIView *pView;
@end

@implementation MyWalletViewController
-(void)viewWillAppear:(BOOL)animated{
    self.navigationController.navigationBarHidden = NO;
    self.tabBarController.tabBar.hidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initView];
    // Do any additional setup after loading the view from its nib.
}

-(void)initView{
 
    _ptableView.delegate = self;
    _ptableView.dataSource = self;

    
    [self.ptableView setTableHeaderView:_pView];
  
    UIView *view = [[UIView alloc]init];
    
    [self.ptableView
     setTableFooterView:view];
    
    [self selDefaultNavigationBackground];
    [self selDefaultNavigationWithTitle:@"我的钱包"];
    [self selAddLeftBackButton];
 
    
}

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{

    return 0;

}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    return 0;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    NSString *identifier = @"cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (cell ==nil) {
        cell = [[UITableViewCell alloc]initWithStyle:(UITableViewCellStyleValue1)reuseIdentifier:identifier];
    }
    return cell;

}

-(void)scrollViewDidScroll:(UIScrollView *)scrollView{
    self.ptableView.contentSize = CGSizeMake([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height+10);

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
